package cn.ad.exception;

public class BesAdvertiserException extends RuntimeException {
	
		private int code;
	    private String message;

	    public BesAdvertiserException() {
	    }

	    public BesAdvertiserException(int code) {
	        this.code = code;
	    }

	    public BesAdvertiserException(int code, String message) {
	        super(message);
	        this.code = code;
	        this.message=message;
	    }


	    public BesAdvertiserException(Throwable cause) {
	        super(cause);
	    }

	    public int getCode() {
	        return code;
	    }

	    public void setCode(int code) {
	        this.code = code;
	    }

	    @Override
	    public String getMessage() {
	        return message;
	    }

	    public void setMessage(String message) {
	        this.message = message;
	    }
}
